<?php
/**
 * Created by PhpStorm.
 * User: sosyuki
 * Date: 2018/6/20
 * Time: 23:48
 */

namespace Drupal\easy_wechat;

use Exception;
use Monolog\Handler\AbstractProcessingHandler;

class EasyWechatLogHandler extends AbstractProcessingHandler {

  protected function write(array $record) {
    try {
      watchdog('easy_wechat', 'test');
    } catch (Exception $e) {
      watchdog_exception('easy_wechat', $e);
    }
  }

}
